/**
 * 
 */
package com.pj.mapperstruct;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author jigq
 *
 * @date 2022年9月9日
 */
@Mapper
public interface  InfoConverter {

    InfoConverter INSTANT = Mappers.getMapper(InfoConverter.class);
    
    @Mappings({
            @Mapping(source = "name", target = "userName")
    })
    UserInfoVO convert(UserDTO userDto);
    
}
